package com.coderlin.service.impl;

import com.coderlin.entities.Send;
import com.coderlin.mapper.SendMapper;
import com.coderlin.service.SendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <Description> <br>
 *
 * @author Coder_Lin<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2021/07/28 11:37 <br>
 * @see com.coderlin.service.impl <br>
 */
@Service
public class SendServiceImpl implements SendService {

    @Autowired
    private SendMapper sendMapper;
    /**
     * 查询员工送水总数
     *
     * @return
     */
    @Override
    public List<Send> sendList() {
        return sendMapper.sendList();
    }

    /**
     * 模糊查询，查找匹配的worker
     *
     * @param workerName
     * @return
     */
    @Override
    public List<Send> searchSend(String workerName) {
        return sendMapper.searchSend(workerName);
    }
}
